package com.mlizhi.modules.spec.dao.model;

import java.util.Date;

/**
 * 用来缓存资讯的实体类
 * @author Administrator
 *
 */
public class ContentModel {
	private Long id;//primary key 
	private String contentTitle;//标题
	private String contentSummarize;//摘要
	private String contentImageUrl;//预览图片
	private String contentPraise;//点赞数
	private String contentView;//预览数
	private String contentComment;//评论数
	private Date contentInsertTime;//发布时间
	
	private Integer contentType;//资讯类型
	private String contentId;//资源id
	
	
	public ContentModel() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
	public ContentModel(Long id) {
		super();
		this.id = id;
	}


	public ContentModel(Long id, String contentTitle, String contentSummarize,
			String contentImageUrl, String contentPraise, String contentView,
			String contentComment,Date contentInsertTime,Integer contentType,
			String contentId) {
		super();
		this.id = id;
		this.contentTitle = contentTitle;
		this.contentSummarize = contentSummarize;
		this.contentImageUrl = contentImageUrl;
		this.contentPraise = contentPraise;
		this.contentView = contentView;
		this.contentComment = contentComment;
		this.contentInsertTime = contentInsertTime;
		this.contentType = contentType;
		this.contentId = contentId;
	}


	public Long getId() {
		return id;
	}


	public void setId(Long id) {
		this.id = id;
	}


	public String getContentTitle() {
		return contentTitle;
	}


	public void setContentTitle(String contentTitle) {
		this.contentTitle = contentTitle;
	}


	public String getContentSummarize() {
		return contentSummarize;
	}


	public void setContentSummarize(String contentSummarize) {
		this.contentSummarize = contentSummarize;
	}


	public String getContentImageUrl() {
		return contentImageUrl;
	}


	public void setContentImageUrl(String contentImageUrl) {
		this.contentImageUrl = contentImageUrl;
	}


	public String getContentPraise() {
		return contentPraise;
	}


	public void setContentPraise(String contentPraise) {
		this.contentPraise = contentPraise;
	}


	public String getContentView() {
		return contentView;
	}


	public void setContentView(String contentView) {
		this.contentView = contentView;
	}


	public String getContentComment() {
		return contentComment;
	}


	public void setContentComment(String contentComment) {
		this.contentComment = contentComment;
	}


	public Date getContentInsertTime() {
		return contentInsertTime;
	}


	public void setContentInsertTime(Date contentInsertTime) {
		this.contentInsertTime = contentInsertTime;
	}

	

	public Integer getContentType() {
		return contentType;
	}


	public void setContentType(Integer contentType) {
		this.contentType = contentType;
	}

	

	public String getContentId() {
		return contentId;
	}


	public void setContentId(String contentId) {
		this.contentId = contentId;
	}


	@Override
	public String toString() {
		return "ContentModel [id=" + id + ", contentTitle=" + contentTitle
				+ ", contentSummarize=" + contentSummarize
				+ ", contentImageUrl=" + contentImageUrl + ", contentPraise="
				+ contentPraise + ", contentView=" + contentView
				+ ", contentComment=" + contentComment + ", contentInsertTime="
				+ contentInsertTime + "]";
	}
	
	
	
	
}
